]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use navigate_focus() to keep focus after editing app folder title
authorsorelz <sorelz.zen498@passinbox.com>
Mon, 1 Jul 2024 23:52:33 +0000 (19:52 -0400)
committersorelz <sorelz.zen498@passinbox.com>
Sun, 21 Jul 2024 18:24:57 +0000 (14:24 -0400)
The AppFolderDialog would lose keyboard focus after editing the title
(likely due to the folder entry grabbing key focus). This commit adds
navigate_focus() to _showFolderLabel() to send key focus back to the
dialog's elements after editing the title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3338>

js/ui/appDisplay.js

index 9b352e618facc58d0ebd88f7a466e0109bb3d0d5..b3946cd6657dbc004d52e4c2787c302f354fa9d1 100644 (file)
@@ -2661,6 +2661,7 @@ export const AppFolderDialog = GObject.registerClass({
 
         this._maybeUpdateFolderName();
         this._switchActor(this._entry, this._folderNameLabel);
+        this.navigate_focus(this, St.DirectionType.TAB_FORWARD, false);
     }
 
     _showFolderEntry() {